package com.example.myspringboot.design.factory.abstractTwo.concrete;

import com.example.myspringboot.design.factory.abstractTwo.AbstractFactory;
import com.example.myspringboot.design.factory.abstractTwo.ConcreteProductA1;
import com.example.myspringboot.design.factory.abstractTwo.ConcreteProductA2;
import com.example.myspringboot.design.factory.abstractTwo.ConcreteProductB1;
import com.example.myspringboot.design.factory.dto.ProductA;
import com.example.myspringboot.design.factory.dto.ProductB;

/**
 * @Author ZhengShan
 * @Date 2024 06 26 16 17
 **/
public class ConcreteFactory1 implements AbstractFactory {
    @Override
    public ProductA createProductA() {
        return new ConcreteProductA1();
    }

    @Override
    public ProductB createProductB() {
        return new ConcreteProductB1();
    }
}
